JBASE
JobCBS

Syntax: JBASE ( {jobnr | jobname} )
   and: JobCBS ( {jobnr | jobname} )
Location: TinyToolkit (JBASE) and Btool (JobCBS)

The function JBASE takes either a job number or job name and returns the start address of where its job header is stored.

The jobname need not appear in quotes (unless it is also the name of a SuperBASIC variable, procedure or function).

As from v1.11, the jobnr can be -1 which will return the base address of the current job.

JobCBS is the same except does not accept a jobnr of -1.

Note:
Before v1.11, JBASE would report an 'invalid job' error if you used a variable to supply the job number (even if that variable pointed to an existing job).

The problem can be easily circumvented: use JBASE (nr*(nr=nr)) instead of JBASE (nr) - this converts the variable into an expression.

CROSS-REFERENCE:
JOBS, SJOB, AJOB, NXJOB.
